package com.uex.dev.manage.admin.intercepter;

import com.uex.dev.manage.admin.vo.wx.OpenidInfo;

/**
 * @author lzs
 * @create 2024/03/12
 * @description
 */

public class OpenidContext {
    static ThreadLocal<OpenidInfo> openidLocal = new ThreadLocal<>();

    public static void setOpenidLocal(OpenidInfo openidInfo) {
        openidLocal.set(openidInfo);
    }

    public static OpenidInfo getOpenidLocal() {
        return openidLocal.get();
    }

    public static void clear() {
        openidLocal.remove();
    }
}

